import 'package:safetymonitor/generated/json/base/json_convert_content.dart';
import 'package:safetymonitor/app/data/entities/auth/api_urls_entity.dart';

ApiUrlsEntity $ApiUrlsEntityFromJson(Map<String, dynamic> json) {
  final ApiUrlsEntity apiUrlsEntity = ApiUrlsEntity();
  final String? workTicket = jsonConvert.convert<String>(json['workTicket']);
  if (workTicket != null) {
    apiUrlsEntity.workTicket = workTicket;
  }
  final String? webrtcTurn = jsonConvert.convert<String>(json['webrtcTurn']);
  if (webrtcTurn != null) {
    apiUrlsEntity.webrtcTurn = webrtcTurn;
  }
  final int? modifyDate = jsonConvert.convert<int>(json['modifyDate']);
  if (modifyDate != null) {
    apiUrlsEntity.modifyDate = modifyDate;
  }
  final String? akyCoMainApiUrl = jsonConvert.convert<String>(json['akyCoMainApiUrl']);
  if (akyCoMainApiUrl != null) {
    apiUrlsEntity.akyCoMainApiUrl = akyCoMainApiUrl;
  }
  final String? gsGaMainApiUrl = jsonConvert.convert<String>(json['gsGaMainApiUrl']);
  if (gsGaMainApiUrl != null) {
    apiUrlsEntity.gsGaMainApiUrl = gsGaMainApiUrl;
  }
  final String? fileViewUrl = jsonConvert.convert<String>(json['fileViewUrl']);
  if (fileViewUrl != null) {
    apiUrlsEntity.fileViewUrl = fileViewUrl;
  }
  final String? webrtcWs = jsonConvert.convert<String>(json['webrtcWs']);
  if (webrtcWs != null) {
    apiUrlsEntity.webrtcWs = webrtcWs;
  }
  final String? gsCoMainApiUrl = jsonConvert.convert<String>(json['gsCoMainApiUrl']);
  if (gsCoMainApiUrl != null) {
    apiUrlsEntity.gsCoMainApiUrl = gsCoMainApiUrl;
  }
  final String? gsSuMainApiUrl = jsonConvert.convert<String>(json['gsSuMainApiUrl']);
  if (gsSuMainApiUrl != null) {
    apiUrlsEntity.gsSuMainApiUrl = gsSuMainApiUrl;
  }
  final String? gsFileUrl = jsonConvert.convert<String>(json['gsFileUrl']);
  if (gsFileUrl != null) {
    apiUrlsEntity.gsFileUrl = gsFileUrl;
  }
  final String? serverType = jsonConvert.convert<String>(json['serverType']);
  if (serverType != null) {
    apiUrlsEntity.serverType = serverType;
  }
  final String? akyWebAddress = jsonConvert.convert<String>(json['akyWebAddress']);
  if (akyWebAddress != null) {
    apiUrlsEntity.akyWebAddress = akyWebAddress;
  }
  final String? akyFileUrl = jsonConvert.convert<String>(json['akyFileUrl']);
  if (akyFileUrl != null) {
    apiUrlsEntity.akyFileUrl = akyFileUrl;
  }
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    apiUrlsEntity.id = id;
  }
  final String? gsPaMainApiUrl = jsonConvert.convert<String>(json['gsPaMainApiUrl']);
  if (gsPaMainApiUrl != null) {
    apiUrlsEntity.gsPaMainApiUrl = gsPaMainApiUrl;
  }
  final String? akyStudyVideoUrl = jsonConvert.convert<String>(json['akyStudyVideoUrl']);
  if (akyStudyVideoUrl != null) {
    apiUrlsEntity.akyStudyVideoUrl = akyStudyVideoUrl;
  }
  final String? coLinks = jsonConvert.convert<String>(json['coLinks']);
  if (coLinks != null) {
    apiUrlsEntity.coLinks = coLinks;
  }
  final int? createDate = jsonConvert.convert<int>(json['createDate']);
  if (createDate != null) {
    apiUrlsEntity.createDate = createDate;
  }
  final String? akyCoMainApiUrlTest = jsonConvert.convert<String>(json['akyCoMainApiUrlTest']);
  if (akyCoMainApiUrlTest != null) {
    apiUrlsEntity.akyCoMainApiUrlTest = akyCoMainApiUrlTest;
  }
  final String? pullAddress = jsonConvert.convert<String>(json['pullAddress']);
  if (pullAddress != null) {
    apiUrlsEntity.pullAddress = pullAddress;
  }
  final String? pushAddress = jsonConvert.convert<String>(json['pushAddress']);
  if (pushAddress != null) {
    apiUrlsEntity.pushAddress = pushAddress;
  }
  final String? threeDimensionalMap = jsonConvert.convert<String>(json['threeDimensionalMap']);
  if (threeDimensionalMap != null) {
    apiUrlsEntity.threeDimensionalMap = threeDimensionalMap;
  }
  final String? jobTicketAddress = jsonConvert.convert<String>(json['jobTicketAddress']);
  if (jobTicketAddress != null) {
    apiUrlsEntity.jobTicketAddress = jobTicketAddress;
  }
  return apiUrlsEntity;
}

Map<String, dynamic> $ApiUrlsEntityToJson(ApiUrlsEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['workTicket'] = entity.workTicket;
  data['webrtcTurn'] = entity.webrtcTurn;
  data['modifyDate'] = entity.modifyDate;
  data['akyCoMainApiUrl'] = entity.akyCoMainApiUrl;
  data['gsGaMainApiUrl'] = entity.gsGaMainApiUrl;
  data['fileViewUrl'] = entity.fileViewUrl;
  data['webrtcWs'] = entity.webrtcWs;
  data['gsCoMainApiUrl'] = entity.gsCoMainApiUrl;
  data['gsSuMainApiUrl'] = entity.gsSuMainApiUrl;
  data['gsFileUrl'] = entity.gsFileUrl;
  data['serverType'] = entity.serverType;
  data['akyWebAddress'] = entity.akyWebAddress;
  data['akyFileUrl'] = entity.akyFileUrl;
  data['id'] = entity.id;
  data['gsPaMainApiUrl'] = entity.gsPaMainApiUrl;
  data['akyStudyVideoUrl'] = entity.akyStudyVideoUrl;
  data['coLinks'] = entity.coLinks;
  data['createDate'] = entity.createDate;
  data['akyCoMainApiUrlTest'] = entity.akyCoMainApiUrlTest;
  data['pullAddress'] = entity.pullAddress;
  data['pushAddress'] = entity.pushAddress;
  data['threeDimensionalMap'] = entity.threeDimensionalMap;
  data['jobTicketAddress'] = entity.jobTicketAddress;
  return data;
}

extension ApiUrlsEntityExtension on ApiUrlsEntity {
  ApiUrlsEntity copyWith({
    String? workTicket,
    String? webrtcTurn,
    int? modifyDate,
    String? akyCoMainApiUrl,
    String? gsGaMainApiUrl,
    String? fileViewUrl,
    String? webrtcWs,
    String? gsCoMainApiUrl,
    String? gsSuMainApiUrl,
    String? gsFileUrl,
    String? serverType,
    String? akyWebAddress,
    String? akyFileUrl,
    int? id,
    String? gsPaMainApiUrl,
    String? akyStudyVideoUrl,
    String? coLinks,
    int? createDate,
    String? akyCoMainApiUrlTest,
    String? pullAddress,
    String? pushAddress,
    String? threeDimensionalMap,
    String? jobTicketAddress,
  }) {
    return ApiUrlsEntity()
      ..workTicket = workTicket ?? this.workTicket
      ..webrtcTurn = webrtcTurn ?? this.webrtcTurn
      ..modifyDate = modifyDate ?? this.modifyDate
      ..akyCoMainApiUrl = akyCoMainApiUrl ?? this.akyCoMainApiUrl
      ..gsGaMainApiUrl = gsGaMainApiUrl ?? this.gsGaMainApiUrl
      ..fileViewUrl = fileViewUrl ?? this.fileViewUrl
      ..webrtcWs = webrtcWs ?? this.webrtcWs
      ..gsCoMainApiUrl = gsCoMainApiUrl ?? this.gsCoMainApiUrl
      ..gsSuMainApiUrl = gsSuMainApiUrl ?? this.gsSuMainApiUrl
      ..gsFileUrl = gsFileUrl ?? this.gsFileUrl
      ..serverType = serverType ?? this.serverType
      ..akyWebAddress = akyWebAddress ?? this.akyWebAddress
      ..akyFileUrl = akyFileUrl ?? this.akyFileUrl
      ..id = id ?? this.id
      ..gsPaMainApiUrl = gsPaMainApiUrl ?? this.gsPaMainApiUrl
      ..akyStudyVideoUrl = akyStudyVideoUrl ?? this.akyStudyVideoUrl
      ..coLinks = coLinks ?? this.coLinks
      ..createDate = createDate ?? this.createDate
      ..akyCoMainApiUrlTest = akyCoMainApiUrlTest ?? this.akyCoMainApiUrlTest
      ..pullAddress = pullAddress ?? this.pullAddress
      ..pushAddress = pushAddress ?? this.pushAddress
      ..threeDimensionalMap = threeDimensionalMap ?? this.threeDimensionalMap
      ..jobTicketAddress = jobTicketAddress ?? this.jobTicketAddress;
  }
}